//
//  RoundView.m
//  Animation
//
//  Created by kunpo on 16/3/18.
//  Copyright © 2016年 kunpo. All rights reserved.
//

#import "RoundView.h"

@implementation RoundView
- (void)drawRect:(CGRect)rect {
    if (!self.viewColor) {
        self.viewColor = [UIColor whiteColor];
    }
    [self.viewColor set];
    UIBezierPath *aPath = [UIBezierPath bezierPathWithOvalInRect:rect];
    aPath.lineCapStyle = kCGLineCapRound;
    aPath.lineJoinStyle = kCGLineJoinRound;
    [[UIColor orangeColor] setStroke];
    [aPath fill];
}

@end

